using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace WindowsFormsApplication1
{
    public partial class rptDiemTBSV : DevExpress.XtraReports.UI.XtraReport
    {
        int STT = 0;
        public rptDiemTBSV()
        {
            InitializeComponent();
        }

        private void colSTT_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            STT++;
            colSTT.Text = STT.ToString();
        }

        public void BindData(string malop)
        {
            col_Malop.Text = malop;
            col_Masv.DataBindings.Add("Text", DataSource, "MasvID");
            col_Holot.DataBindings.Add("Text", DataSource, "Holot");
            col_Ten.DataBindings.Add("Text", DataSource, "Ten");
            col_Sotrinhrot.DataBindings.Add("Text", DataSource, "Sotrinhrot");
            col_DiemTB.DataBindings.Add("Text", DataSource, "DiemTBC");
            col_Tylerot.DataBindings.Add("Text", DataSource, "Tylerot");
            col_Tongsotrinh.DataBindings.Add("Text", DataSource, "Tongsotrinh");
            col_Xeploai.DataBindings.Add("Text", DataSource, "XL");
        }

    }
}
